package com.top4create.component.listener;

import com.top4create.Main;
import com.top4create.component.MenuUtil;
import com.top4create.face.BasicActivity;
import com.top4create.face.ConpanyInfoList;

import android.content.Intent;
import android.view.View;
import android.view.View.OnClickListener;

public class ForwardListener implements OnClickListener {

	private BasicActivity instance;
	private Class<?> className;

	public ForwardListener(BasicActivity main, Class<?> class4dist) {
		this.instance = main;
		this.className = class4dist;
	}

	public void onClick(View v) {
		Intent intent = MenuUtil.createIntent4Menu(instance, className);
		instance.startActivityForResult(intent, 1);
	}

	

}
